package com.mz.ozy.mvp.model;

import android.content.Context;

import com.mz.ozy.constants.Constants;
import com.mz.ozy.net.RetrofitUtils;
import com.mz.ozy.utils.JsonUtils;

import java.util.HashMap;
import java.util.Map;

import io.reactivex.Observable;
import okhttp3.ResponseBody;

/**
 * Created by administrator on 2018/12/3.
 */
public class RechargeRecordModel {


    public Observable<ResponseBody> getRechargeRecord(Context context, String coinCode, String pageNo) {
        Map<String, String> maps = new HashMap<>();
        maps.put("coinCode", coinCode);
        maps.put("pageNo", pageNo);
        maps.put("pageSize", Constants.PageSize);
        return RetrofitUtils.getApiService(context).post(Constants.TransCode.TransCode10009, JsonUtils.requestJsonDate(maps), Constants.tokenId);
    }
    public Observable<ResponseBody> getRecharge(Context context,String type,String amt) {
        Map<String, String> maps = new HashMap<>();
        maps.put("type", type);
        maps.put("amt", amt);

        return RetrofitUtils.getApiService(context).post(Constants.TransCode.TransCode10013, JsonUtils.requestJsonDate(maps), Constants.tokenId);
    }

}
